<template>
  <div class="searchbar">
    <div @click="gopage" class="search-btn">
      <van-icon name="search" />搜索商品
    </div>
    <div class="chat">
      <van-icon name="chat" size="50" />
    </div>
  </div>
</template>

<script>
  export default {
    name: "searchbar",
    methods:{
      gopage:function () {
        this.$router.push('/search/search')
      }
    }
  }
</script>

<style scoped>
  .searchbar{
    line-height: 50px;
    background-color: #fff;
    height: 50px;
  }
.search-btn{
  display: inline-block;
  margin-top: 10px;
  margin-left: 12px;
  border-radius: 5px;
  width: 80%;
  background-color: #f5f5f5;
  height: 30px;
  line-height: 30px;
  text-align: center;
}
  .chat{
    display: inline-block;
    font-size: 22px;
   box-sizing: border-box;
    line-height: 40px;
    height: 100%;
    margin-left: 20px;
  }
  .chat i{
    top:5px
  }
</style>
